package com.gitee.wsl.mathematics.coordinate


import com.gitee.wsl.mathematics.vector.Vector

typealias CoordinateD = Coordinate<Double,*>

typealias CoordinateF = Coordinate<Float,*>

interface Coordinate<T:Number,V: Vector<T, V>>: Vector<T, V> {

    fun compareToCoordinate(other: Coordinate<T,*>): Int{
        return squaredLength.toDouble().compareTo(other.squaredLength.toDouble())
    }

}


